﻿@using System.Security.Claims;
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>网站后台管理</title>
    <link rel="stylesheet" type="text/css" href="~/admin/layui/css/layui.css" />
    <link rel="stylesheet" type="text/css" href="~/admin/css/admin.css" />
</head>
<body>
    <div class="main-layout" id='main-layout'>
        <!--侧边栏-->
        <div class="main-layout-side">
            <div class="m-logo">
            </div>
            <ul class="layui-nav layui-nav-tree" lay-filter="leftNav">
                <li class="layui-nav-item layui-this">
                    <a href="javascript:;" data-url="/Home/Parent" data-id='1' data-text="主模块管理"><i class="iconfont">&#xe603;</i>主模块管理</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" data-url="/Home/Category" data-id='2' data-text="栏目管理"><i class="iconfont">&#xe604;</i>栏目管理</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" data-url="/Home/Article" data-id='3' data-text="文章管理"><i class="iconfont">&#xe602;</i>文章管理</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" data-url="/Home/Comment" data-id='4' data-text="评论管理"><span class="iconfont">&#xe605;</span>评论管理</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" data-url="/Home/UserInfo" data-id='5' data-text="用户管理"><i class="iconfont">&#xe609;</i>用户管理</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" data-url="/Home/Work" data-id='6' data-text="工单管理"><i class="iconfont">&#xe603;</i>工单管理</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" data-url="/Home/AdminInfo" data-id='7' data-text="管理员管理"><i class="iconfont">&#xe606;</i>管理员管理</a>
                </li>
            </ul>
        </div>
        <!--右侧内容-->
        <div class="main-layout-container">
            <!--头部-->
            <div class="main-layout-header">
                <div class="menu-btn" id="hideBtn">
                    <a href="javascript:;">
                        <span class="iconfont">&#xe60e;</span>
                    </a>
                </div>
                <ul class="layui-nav" lay-filter="rightNav">
                    <li class="layui-nav-item">
                        <a href="javascript:;" data-text="个人信息">@User.Identities.First(u => u.IsAuthenticated).FindFirst(ClaimTypes.Name).Value</a>
                    </li>
                    <li class="layui-nav-item"><a href="javascript:;" id="Exit">退出</a></li>
                </ul>
            </div>
            <!--主体内容-->
            <div class="main-layout-body">
                <!--tab 切换-->
                <div class="layui-tab layui-tab-brief main-layout-tab" lay-filter="tab" lay-allowClose="true">
                    <ul class="layui-tab-title">
                        <li lay-id="1" class="layui-this welcome">主模块管理</li>
                    </ul>
                    <div class="layui-tab-content">
                        <div class="layui-tab-item layui-show" style="background: #f5f5f5;">
                            <!--1-->
                            <iframe src="/Home/Parent" width="100%" height="100%" name="iframe" scrolling="auto" class="iframe" framborder="0"></iframe>
                            <!--1end-->
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--遮罩-->
        <div class="main-mask">
        </div>
    </div>
    <script src="~/admin/js/jquery-3.0.0.min.js"></script>
    <script src="~/admin/layui/layui.js" type="text/javascript" charset="utf-8"></script>
    <script src="~/admin/js/common.js" type="text/javascript" charset="utf-8"></script>
    <script src="~/admin/js/main.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>
<script>
    $("#Exit").click(function () {
        $.get("/Home/OnGetLoginOutAsync", function (res) {
             window.location.href = res;
        })
    })
</script>
